﻿#region Using declarations
using System;
using System.ComponentModel;
using System.Drawing;
using System.Globalization;
using NinjaTrader.Cbi;
using NinjaTrader.Data;
using NinjaTrader.Indicator;
using NinjaTrader.Strategy;
#endregion

// This namespace holds all strategies and is required. Do not change it.
namespace NinjaTrader.Strategy
{
    partial class Strategy
    {
        ///Returns the data interval (in minutes) for bars on a minute-based chart.
        public int BarInterval()
        {
            if (BarsArray[BarsInProgress].Period.Id == PeriodType.Minute)
                return Bars.Period.Value;
            return 0;
        }

    }
}
